<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/common/taglibs.jsp"%>
<%@include file="/common/meta.jsp"%>
<title>修改使用单位</title>
</head>
<body>
	<form id="formId" action='<c:url value="/sydw/updateSydw"/>' method="post" autocomplete="off">
		<input name="id" value="<c:out value="${sydw.id}"/>" type="hidden"/>
		
		<table class="add_form">
			<tr>
				<td align="right" width="20%">
					<label>企业名称:</label>
				</td>
				<td width="30%">
					<input name="sydwQymc" class="add_input" value="${sydw.sydwQymc}" required/>
				</td>
				<td align="right" width="20%">
					<label>组织机构代码:</label>
				</td>
				<td width="30%">
					<input name="sydwZzjgdm" class="add_input" value="${sydw.sydwZzjgdm}" required/>
				</td>
			</tr>
			<tr>
				<td align="right">
					<label>所属辖区:</label>
				</td>
				<td>
					<input name="xzqhName" id="xzqhName" readonly="readonly" class="add_input" value="${sydw.sydwQhmc}" required onclick="showXzqh(this)"/>
					<input name="sydwQhdm" id="xzqhCode" type="hidden" value="${sydw.sydwQhdm}"/>
				</td>
				<td align="right">
					<label>所属网格:</label>
				</td>
				<td>
					<input name="wgName" id="wgName" readonly="readonly" class="add_input" onclick="showWg(this)" value="${sydw.sydwWgqygs}" required/>
					<input name="sydwWgqygsId" id="wgCode" value="${sydw.sydwWgqygsId}" type="hidden"/>
				</td>
			</tr>
			<tr>
				<td align="right">
					<label>住址:</label>
				</td>
				<td>
					<input name="sydwZz" class="add_input" value="${sydw.sydwZz}" required/>
				</td>
				<td align="right">
					<label>邮政编码:</label>
				</td>
				<td>
					<input name="sydwYzbm" class="add_input" value="${sydw.sydwYzbm}" required/>
				</td>
			</tr>
			<tr>
				<td align="right">
					<label>法人:</label>
				</td>
				<td>
					<input name="sydwFrname" class="add_input" value="${sydw.sydwFrname}" required/>
				</td>
				<td align="right">
					<label>法人联系方式:</label>
				</td>
				<td>
					<input name="sydwFrlxfs" class="add_input" value="${sydw.sydwFrlxfs}" required/>
				</td>
			</tr>
			<tr>
				<td align="right">
					<label>联系人:</label>
				</td>
				<td>
					<input name="sydwLxrname" class="add_input" value="${sydw.sydwLxrname}" required/>
				</td>
				<td align="right">
					<label>联系人电话:</label>
				</td>
				<td>
					<input name="sydwLxrlxfs" class="add_input" value="${sydw.sydwLxrlxfs}" required/>
				</td>
			</tr>
			<tr>
				<td colspan="4" align="center">
					<input id="submit" type="button" value="保存"/>
				</td>
			</tr>
		</table>
		
	</form>
	<script type="text/javascript">
		$(function() {
			var ajax_option = {
				success:function(data) {
					if(data.flag == 1) {
						//关闭窗口，刷新父页面
						parent.closeAndRefresh();
					} else {
						art.dialog.alert(data.msg);
					}
				}
			};
			$("#formId").ajaxForm();
			$("#submit").click(function() {
				if($("#formId").valid()) {
					$("#formId").ajaxSubmit(ajax_option);
				}
			});
		});
	</script>
	<script type="text/javascript" src="<c:url value="/common/js/zd/xzqh.js"/>" ></script>
	<script type="text/javascript" src="<c:url value="/common/js/zd/wg.js"/>" ></script>
</body>
</html>